package org.example.cet.demos.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.example.cet.demos.domain.dto.PaperDto;
import org.example.cet.demos.domain.dto.QuestionDto;
import org.example.cet.demos.domain.dto.TypeDto;
import org.example.cet.demos.domain.po.Questions;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * Mapper 接口
 * </p>
 *
 * @author hq
 * @since 2024-12-18
 */
@Mapper
public interface QuestionsMapper extends BaseMapper<Questions> {
//    List<Questions> getPage(Integer id);
//    List<QuestionDto> getList(Integer type);
    List<Map<String,Object>> getTypeList(Integer type);
    List<Questions> getTypeTitleList(Integer type);
    QuestionDto getQuestion(Integer id);

}
